/*!  \file  commonSVD.h
 *	  \brief  
 * 
 *   \details   details
 *   \author    Yordan Madzhunkov German Research School for Simulation Sciences GmbH
 *   \version   1.0
 *   \date      07/03/2013 12:56:33 PM
 *   \copyright GNU Public License.
 */
#pragma once
class Matrix;
bool checkSVDDimentions(const Matrix & A, const Matrix & U,
  	 						 const Matrix & S, const Matrix & VT);
bool checkSVDMemory(const Matrix & A, const Matrix & U, 
  						const Matrix & S, const Matrix & VT);
void getNorms(double * norm, Matrix & A, Matrix & U, Matrix & S, Matrix & V);
void getResidual(double & resID, Matrix & A, Matrix & U, Matrix & S, Matrix & V);
void getOrth(double & resID, Matrix & U);
static const char * normNames[] = { "Residual", "Orth"};
